package java_DesignPattern.SixPrinciple.CompositeReusePrinciple.Right;

/**
 * 汽车类
 * 合成复用原则
 */
public class Car {

    private Color color;

    public Car(Color color){
        this.color = color;
    }

    public void move(){
        System.out.println("汽车在移动");
    }
}
